MCQ Answer

What will be the output of the following Python function?

import math

abs(math.sqrt(25))

What will be the output of the following Python function?

import math

abs(math.sqrt(25))



निम्नलिखित Python फ़ंक्शन का आउटपुट क्या होगा?
Topic : Functions in Python

A. Error एरर

B. -5

C. 5

D. 5.0




Correct Answer is :

D. 5.0



Explanation
The abs() function prints the absolute value of the argument passed. For example: abs(-5)=5. Hence, in this case we get abs(5.0)=5.0.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz